import Link from "next/link";
export default async function  Length(
    { params, searchParams }:
    { params: Promise<{len:string}>;
      searchParams: Promise<{ lang?: 'en' | 'fr' | 'es' }>
    }
)
    {
        const {len}=await params
        const { lang }=await searchParams
        return <>
            <h3>这是语言页面</h3>
            <p>len---{len}</p>
            <p>leng---{lang}</p>
            <div>
                <Link href={`/leng/${len}?lang=en`}>选择英语</Link>
                <Link href={`/leng/${len}?lang=fr`}>选择法语</Link>
                <Link href={`/leng/${len}?lang=es`}>选择es</Link>
            </div>
        </>
    }